module ProjectItem

  def my_item?(project_comp_id)
    user_id = session['user']['id']
    item = DatProjectcomp.find(project_comp_id)
    logger.debug item.inspect
    r = my_project?(item.project_id)
    render :text => result_for_json(false, 'Permission Dinied', {}) unless r
    r
  end
end
